home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
gfxfx
/
tstmath.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1994-04-21
|
372 b
|
17 lines
program testfastmath;
{ Test of fastmath unit (by Bas van Gaalen) }
uses fastmath,dos;
const max = 10000;
var t : longint; i,h,m,s,hs : word;
begin
gettime(h,m,s,hs); t := hs+s*100+m*6000;
for i := 0 to round(2*pi*max) do
write(#13,cos(i/max):6:3);
gettime(h,m,s,hs); t := (hs+s*100+m*6000)-t;
writeln;
writeln(t);
writeln;
readln;
end.